package top.lywivan.mm.controller;

import top.lywivan.mm.entity.Result;
import top.lywivan.mm.pojo.Industry;
import top.lywivan.mm.service.IndustryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/industry")
public class IndustryController {

    @Autowired
    private IndustryService industryService;

    @GetMapping("/findListAll")
    public Result findListAllIndustry(){
        List<Industry> list = industryService.findListAllIndustry();
        return new Result(true,"查询所有方向成功",list);
    }
}
